<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html>
<html>
<head>
    <jsp:include page="/WEB-INF/jsp/include/head.jsp"/>
</head>
<body>
<ol class="breadcrumb">
    <li><strong>当前位置： </strong>业务预警</li>
    <li class="active">专家证书</li>
</ol>




<table id="table_data"></table>



<jsp:include page="/WEB-INF/jsp/include/footer.jsp"/>

<script>

    $('#table_data').bootstrapTable({
        data:${data},
        columns: [
            {
                title: '序号',
                formatter: function (value, row, index) {
                    return [
                        index+1
                    ].join('');
                }
            },
            {
                title: '专家姓名',
                field: 'expertName'
            }, {
                title: '身份证号',
                field: 'idCard'

            }, {
                field: 'phone',
                title: '电话号码'

            }, {
                field: 'name',
                title: '证书名称'

            }, {
                field: 'num',
                title: '证书编号'

            }, {
                field: 'startTime',
                title: '发证日期',
                formatter: function (value, row, index) {
                    return [
                        $.Helper.dataTimeHelper.int2DateString(value)
                    ].join('');
                }
            }, {
                field: 'endTime',
                title: '有效期至',
                formatter: function (value, row, index) {
                    return [
                        $.Helper.dataTimeHelper.int2DateString(value)
                    ].join('');
                }
            }, {
                field: 'type',
                title: '目前状态',
                formatter: function (value, row, index) {

                    var s= '<button type="button"  class="btn btn-xs btn-default btn-warning  ">即将到期</button>';
                    if (value==1){
                        s=   '<button type="button"  class="btn btn-xs btn-default btn-danger">已经过期</button>'
                    }
                    return [s].join('');
                }
            }

        ]
    });


</script>


</body>
</html>
